package com.lyj.mode.principle.single;

/**
 * 测试类1
 * @author:liyajie
 * @createTime:2022/1/28 14:47
 * @version:1.0
 */
public class Test2 {
    public static void main(String[] args) {
        Car car = new Car();
        car.car("汽车");

        Train train = new Train();
        train.train("火车");

        Airplane airplane = new Airplane();
        airplane.airplane("飞机");
    }
}
